{extend name="layout"/} {block name="mid"}





<div class="x-nav">
    <span class="layui-breadcrumb" style="margin-left:20px;">
        <i class="layui-icon layui-icon-home"></i> <a href="">&nbsp;主页</a>
        <a href="">资讯管理</a>
        <a>
            <cite>分类管理</cite></a>

        <i style="line-height:30px"></i></a>
        <hr style="color: darkgray;">
</div>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body ">
                    <form class="layui-form layui-col-space5">

                        <div class="layui-inline layui-show-xs-block">
                            <input type="text" name="username" placeholder="" autocomplete="off" class="layui-input">
                        </div>
                        <div class="layui-inline layui-show-xs-block">
                            <button class="layui-btn" lay-submit="" lay-filter="sreach"><i
                                    class="layui-icon">&#xe615;</i></button>
                        </div>
                    </form>
                </div>
                <div class="layui-card-header">
                    <button class="layui-btn layui-btn-danger" onclick="delAll()"><i
                            class="layui-icon"></i>批量删除</button>
                    <button class="layui-btn" id="open_btn_primary1"><i class="layui-icon"></i>添加</button>
                </div>
                <div class="layui-card-body layui-table-body layui-table-main">
                    <table class="layui-table layui-form" id="demo">
                        <thead>
                            <tr>
                                <th>ID </th>
                                <th> 标题</th>
                                <th> 图片 </th>
                                <th> 价格</th>
                                <th>库存</th>
                                <th>浏览次数</th>
                                <th> 更新时间 </th>
                                <th> 排序</th>
                                <th>状态 </th>
                                <th> 操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            {volist name="list" id="vo"}
                            <tr>
                                <td> {$vo.id}</td>
                                <td> {$vo.title}</td>
                                <td>
                                    <image src="{$vo.img}" alt="">
                                </td>
                                <td> {$vo.price}</td>
                                <td> {$vo.sku}</td>
                                <td> {$vo.views}</td>
                                <td> {$vo.update_time}</td>
                                <td class="td-status"> {$vo.sort} </td>
                                <td class="td-manage "> {$vo.status}</td>
                                <td>
                                    <a class="layui-btn " href="{:url('edit',['id'=>$vo.id])}">
                                        编辑
                                    </a>
                                    <a link="{:url('delete',['id'=>$vo.id])}" class="layui-btn layui-btn-danger del"
                                        href="javascript:;">
                                        删除
                                    </a>
                                </td>
                            </tr>
                            {/volist}
                        </tbody>
                    </table>
                </div>



            </div>
        </div>
    </div>
</div>
{/block}